export const tableOption = {
  height: 'auto',
  calcHeight: 210,
  searchShow: true,
  searchMenuSpan: 6,
  tip: false,
  border: true,
  index: true,
  viewBtn: true,
  selection: true,
  column: [
    {
      label: "名称",
      prop: "name",
      width: 120,
      rules: [{
        required: true,
        message: "请输入数据源名称",
        trigger: "blur"
      }]
    },
    {
      label: "驱动类",
      prop: "driverClass",
      type: 'select',
      dicData: [
        {
          label: 'com.mysql.cj.jdbc.Driver',
          value: 'com.mysql.cj.jdbc.Driver',
        }, {
          label: 'org.postgresql.Driver',
          value: 'org.postgresql.Driver',
        }, {
          label: 'oracle.jdbc.OracleDriver',
          value: 'oracle.jdbc.OracleDriver',
        }
      ],
      width: 200,
      rules: [{
        required: true,
        message: "请输入驱动类",
        trigger: "blur"
      }]
    },
    {
      label: "用户名",
      prop: "username",
      width: 120,
      rules: [{
        required: true,
        message: "请输入用户名",
        trigger: "blur"
      }]
    },
    {
      label: "密码",
      prop: "password",
      hide: true,
      rules: [{
        required: true,
        message: "请输入密码",
        trigger: "blur"
      }]
    },
    {
      label: "连接地址",
      prop: "url",
      span: 24,
      rules: [{
        required: true,
        message: "请输入连接地址",
        trigger: "blur"
      }]
    },
    {
      label: "备注",
      prop: "remark",
      span: 24,
      minRows: 3,
      hide: true,
      type: "textarea"
    },
  ]
}
